package com.fenxiao.agent.service;

import java.util.List;

import com.fenxiao.agent.entity.Agent;
import com.fenxiao.common.Pager;

public interface AgentService {
	/**
	 * 查询多个代理三
	 */
	public List<Agent> queryallAgent(long agentId);
	//查询合伙人和代理商
		public Agent quertwo(Long pranId);
	  /**
	    * ����½
	    */
		public Agent checkLogin(Agent Agent)throws Exception;
		
		 /**
		  * ��ҳ��ѯ
		  */
		public Pager queryPage(int pageSize,int page,String search,long agentId);
		/**
		  * ��ҳ��ѯ������
		  */
		public Pager findPage(int pageSize,int page,String search,long agentId);
	 	/**
	 	 * ��Ӵ�����
	 	 */
	 	public int addAgent(Agent agent);
		/**
	 	 * �޸Ĵ�����
	 	 */
	 	public int updateAgent(Agent agent);
	 	/**
	 	 * ��ѯ������
	 	 */
	 	public Agent queryAgentInfo(long agentId);
	 	/**
		  * ��ҳ��ѯ������
		  */
		public Pager findAgentPage(int pageSize,int page,String search);
		/**
		  * ��ҳ��ѯ�ϻ���
		  */
		public Pager findPartnerPage(int pageSize,int page,String search);
		/**
		  * ��ҳ��ѯ�ϻ��˼���
		  */
		public List<Agent> findPartnerList();
		/**
		 * ����ɾ��
		 */
		public int deleteAllAgent(String number);
		/**
		 * ɾ��
		 */
		public int deleteAgent(long agentId); 
		/**
		 * 根据合伙人id查询
		 * */
		public Agent queryHehuo(Long agentId);
		/**
		  * ��ҳ��ѯ������
		  */
		public Pager selectAgentPage(int pageSize,int page,String search);
}
